import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [{
    path: '', // 这里当二级路由的path什么都不写的时候 表示当前路由为默认路由直接渲染对应组件
    name: 'employees', // 给路由规则加一个name
    component: () => import('@/views/employees/employees.vue'),
    meta: { title: '员工', icon: 'people' }
  }, {
    path: 'detail/:id',
    name: 'employeesDetail',
    component: () => import('@/views/employees/detail.vue'),
    hidden: true
  }]
}
